package com.ruoyi.maintenance.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 设备维修列表对象 device_maintenance
 *
 * @author zjt
 * @date 2025-01-15
 */
public class DeviceMaintenance extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 维护号
     */
    @Excel(name = "维护号")
    private Integer maintenanceId;

    /**
     * 设备号
     */
    @Excel(name = "设备号")
    private String deviceId;

    /**
     * 维护操作的日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "维护操作的日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date maintenanceDate;

    /**
     * 具体维护事项描述
     */
    @Excel(name = "具体维护事项描述")
    private String maintenanceContent;

    /**
     * 执行维护的人员姓名
     */
    @Excel(name = "执行维护的人员姓名")
    private String maintenancePerson;

    /**
     * 维护产生的费用
     */
    @Excel(name = "维护产生的费用")
    private BigDecimal cost;

    public Integer getMaintenanceId() {
        return maintenanceId;
    }

    public void setMaintenanceId(Integer maintenanceId) {
        this.maintenanceId = maintenanceId;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public Date getMaintenanceDate() {
        return maintenanceDate;
    }

    public void setMaintenanceDate(Date maintenanceDate) {
        this.maintenanceDate = maintenanceDate;
    }

    public String getMaintenanceContent() {
        return maintenanceContent;
    }

    public void setMaintenanceContent(String maintenanceContent) {
        this.maintenanceContent = maintenanceContent;
    }

    public String getMaintenancePerson() {
        return maintenancePerson;
    }

    public void setMaintenancePerson(String maintenancePerson) {
        this.maintenancePerson = maintenancePerson;
    }

    public BigDecimal getCost() {
        return cost;
    }

    public void setCost(BigDecimal cost) {
        this.cost = cost;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("maintenanceId", getMaintenanceId())
                .append("deviceId", getDeviceId())
                .append("maintenanceDate", getMaintenanceDate())
                .append("maintenanceContent", getMaintenanceContent())
                .append("maintenancePerson", getMaintenancePerson())
                .append("cost", getCost())
                .toString();
    }
}
